let BASE_URL = ''
const TIME_OUT = 5000

switch (process.env.NODE_ENV) {
  case 'development': {
    // 开发环境
    // BASE_URL = 'http://123.207.32.32:8000/api'
    BASE_URL = '/api'
    break
  }
  case 'production': {
    // 生产环境
    BASE_URL = 'http://coderwhy.org/prod'
    break
  }

  default: {
    // 测试环境
    BASE_URL = 'http://coderwhy.org/test'
    break
  }
}

export { BASE_URL, TIME_OUT }
